<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link href="__CSS__/course.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>


<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-md-2">            
          <include file="Public/wsidebar"  />
        </div>
        <!-- 左侧菜end -->
  <!--内容栏start-->
  <div class="col-md-10 content">  
    <ul class="nav nav-tabs">
   <li ><a href="{:U('Wckczuoye/index')}"><i class="glyphicon glyphicon-home"></i>首页</a></li>
   <li ><a href="{:U('Wckczuoye/add')}">资料上传</a></li>
   <li class="active"><a href="{:U('Wckczuoye/search')}">文档搜索</a></li>
   <li><a href="{:U('Wckczuoye/Group')}">组别管理</a></li>
   <li ><a href="{:U('Wckczuoye/myupload','id='.$vo['id'])}" >我的文档</a><li>
   </ul>
	<!-- 标题栏 -->
       <h4 style="color:#5A81A8">&nbsp;&nbsp;<span class="icon icon-search"></span>&nbsp;&nbsp;文档检索 </h4> 
       <!--搜索表单start-->
        <div class="form-inline">
        <form method='post' id="form" name="form"  action="{:U('Wckczuoye/search')}" >
   

        <div class="col-md-8">
          <div class="input-group">
            <span class="input-group-addon">组 别</span>
       <select class="form-control" name="group" id="group" class="span1" >
            <option>{$Think.post.group|default="所有组别"}</option>
           
               <foreach name="grouplist" item="vo">
                <option >{$vo.group}</option>
               </foreach>
                <option >所有组别</option>                   
            </select>
            <span class="input-group-addon fix-border fix-padding"></span>

   <!--          <select name="cid" id="cid" class="form-control">
                <option>{$Think.post.cid|default="选择类别"}</option>
     
                
                <volist name="catelist" id="vo">
                <option value="{$vo.id}" >{$vo.cate}</option>   
                </volist>  
                <option value="" >选择类别</option> 
            </select> -->
            <span class="input-group-addon" >关键词</span>
            <input type="text" name="keywords" class="form-control" placeholder="请输入关键词查询" value="{$Think.post.keywords}"/>
            <span class="input-group-btn">
              <button type="submit" class="btn btn-success">查  询</button>
            </span>
          </div>      
        </div>
      </form> 
      </div> 
      <div class="clearfix"></div>

      <hr/>  
      <!--搜索表单end-->
        <empty name="list">
            <br/>
                <span>未找到您需要的资料，请通知相关老师上传！</span>
         <else/>
           <table class="table table-striped" width="95%">
            <thead>
            <tr class="info">
                <th>序号</th><th>学期</th><th>组别</th><th>标题</th><th>教师</th><th>上传日期</th><th>最近更新</th><th>操作</th>
            </tr>
            </thead>
            <volist name="list" id="v" >
            <tr>
                <td>{$i}</td>
                <td><a href="{:U('Wckczuoye/search',array('subject_id'=> $v['subject_id']))}">{$v.term}</a></td>
                <td><a href="#">{$v.group}</a></td>  
                <td><a href="{:U('Wckczuoye/detail','id='.$v['id'])}">{$v.title}</a></td> 
                <td>{$v.teacher}</td> 
                <td>{$v.create_time|date='Y-m-d',###}</td>                    
                <td>{$v.update_time|date='Y-m-d',###}</td>
                <td>
                <a href="{:U('Jtbk/Wckczuoye/detail','id='.$v['id'])}"><span style="color:#0088AA"><i class="icon icon-edit"></i>查看</span></a>｜
                <a href= "{:U('Jtbk/Wckczuoye/download','fid='.$v['id'])}" ><span style="color:#0088AA"><i class="icon icon-save"></i>下载</span></a></td>

                </tr>
            </volist>
            </table>
        </empty> 
 </div> 
</block>

